package com.hys.ultrasound.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @desc:患者档案
 * @date:2020/10/14 15:34
 * @auther:lp
 * @version:1.1.6
 */
public class Patient implements Parcelable {

    private String name;
    private String sex;
    private String idCard;
    private String bodyHeight;
    private String age;
    private String phone;
    private String bodyWeight;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBodyHeight() {
        return bodyHeight;
    }

    public void setBodyHeight(String bodyHeight) {
        this.bodyHeight = bodyHeight;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBodyWeight() {
        return bodyWeight;
    }

    public void setBodyWeight(String bodyWeight) {
        this.bodyWeight = bodyWeight;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.sex);
        dest.writeString(this.idCard);
        dest.writeString(this.bodyHeight);
        dest.writeString(this.age);
        dest.writeString(this.phone);
        dest.writeString(this.bodyWeight);
    }

    public Patient() {
    }

    protected Patient(Parcel in) {
        this.name = in.readString();
        this.sex = in.readString();
        this.idCard = in.readString();
        this.bodyHeight = in.readString();
        this.age = in.readString();
        this.phone = in.readString();
        this.bodyWeight = in.readString();
    }

    public static final Creator<Patient> CREATOR = new Creator<Patient>() {
        @Override
        public Patient createFromParcel(Parcel source) {
            return new Patient(source);
        }

        @Override
        public Patient[] newArray(int size) {
            return new Patient[size];
        }
    };
}
